package cn.com.bluemoon.design.strategy;

import cn.com.bluemoon.daps.standard.DapsStandardApplication;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.context.annotation.Bean;
import org.springframework.test.context.junit4.SpringRunner;

/**
 * @author Jarod.Kong
 * @date 2021/1/12 9:26
 */
@RunWith(SpringRunner.class)
@SpringBootTest(classes = DapsStandardApplication.class)
public class StrategyClientSpring {
    @Bean
    public StrategyClient strategyClient() {
        return new StrategyClient();
    }

    @Autowired
    private StrategyClient strategyClient;

    @Test
    public void test(){
        String audit = strategyClient.audit(WaitAuditChange.class,
                "1", null,
                null, null);
        System.out.println(audit);
    }
}
